package com.wsd.bookkeeping.entity.query;


public class BaseQuery {

    // 当前页
    private Integer curPage;

    // 页大小
    private Integer pageSize;

    // 开始索引
    private Integer startNumber;

    public Integer getCurPage() {
        return curPage;
    }

    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getStartNumber() {
        return startNumber;
    }

    public void setStartNumber(Integer curPage, Integer pageSize) {
        this.startNumber = (curPage - 1) * pageSize;
    }
}
